<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/imgs/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
    <title>聊天室</title>
    <link rel="stylesheet" type="text/css" href="./css/style.css">
</head>

<body>

    <div class="chat-container">

        <div class="chat-inner">

            <!--菜单选项-->
            <div class="menu-box">
                <div class="item active">
                    聊天
                </div>
                <div class="item">
                    游戏
                </div>
                <div class="item">
                    朋友圈
                </div>
            </div>

            <!--左边-->
            <div class="left-box">
                <div class="search-box">
                    <input type="text">
                </div>
                <div class="list-box">
                    <ul>
                        <li class="item">
                            <div class="photo"><img src="./imgs/user1.png" alt="" srcset=""></div>
                            <div class="info">
                                <div class="name">路人甲</div>
                                <div class="last-talk">你现在在忙什么呢?</div>
                            </div>
                        </li>
                        <li class="item active">
                            <div class="photo"><img src="./imgs/user1.png" alt="" srcset=""></div>
                            <div class="info">
                                <div class="name">路人甲</div>
                                <div class="last-talk">你现在在忙什么呢?你现在在忙什么呢你现在在忙什么呢</div>
                            </div>
                        </li>
                        <li class="item">
                            <div class="photo"><img src="./imgs/user1.png" alt="" srcset=""></div>
                            <div class="info">
                                <div class="name">路人甲</div>
                                <div class="last-talk">你现在在忙什么呢?</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <!--中间-->
            <div class="center-box" id="wrap">
                <div class="head-info">
                    <span class="name">{{form.username}}</span>
                    <span class="status">在线</span>
                </div>
                <div class="show-talk-content">
                    <ul>
                        <li class="item you">
                            <div class="photo">
                                <img src="./imgs/user1.png" alt="" srcset="">
                            </div>
                            <div class="info">
                                <div class="name">路人甲</div>
                                <div class="content">你想聊什么</div>
                            </div>
                        </li>
                        <li class="item me" >
                            <div class="photo">
                                <img src="./imgs/user1.png" alt="" srcset="">
                            </div>
                            <div class="info">
                                <div class="name">我</div>
                                <div class="content">你想聊什么</div>
                            </div>
                        </li>
                        <li class="item me" v-for="(item,index) in listData">
                            <div class="photo">
                                <img src="./imgs/user1.png" alt="" srcset="">
                            </div>
                            <div class="info">
                                <div class="name">{{item.name}}</div>
                                <div class="content">{{item.content}}</div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="send-info">
                    <!-- <textarea name="" id="inputBox"></textarea> -->
                    <!-- <button id="submitFunc">发送</button> -->
                    <textarea name="" v-model="message"></textarea>
                    <button @click="sendMessage">发送</button>
                </div>
            </div>
            <!--右边-->
            <div class="right-box">
                <div class="user-photo">
                    <img src="./imgs/user1.png" alt="人物头像">
                </div>
                <div class="user-name">
                    杨幂
                </div>
                <div class="user-occupation">
                    演员
                </div>
                <div class="user-info">
                    <div class="item">手机：13606545874</div>
                    <div class="item">生日：1982-02-02</div>
                    <div class="item">手email：68844@qq.com</div>
                </div>
            </div>
        </div>

    </div>

    <script src="./js/common/myVue.js"></script>
    <script src="./js/ajax.js"></script>
    <script src="./js/webSocket.js"></script>
    <script src="./js/index.js"></script>

</body>

</html>